package com.jk.dao.account;

import com.jk.entity.account.AccRolePermission;
import com.jk.util.mybatis.MyBatisRepository;
import org.apache.ibatis.annotations.Param;

import org.springframework.dao.DataAccessException;
import java.util.Set;

/**
 * ACC_ROLE_PERMISSION dao
 * Tue Sep 22 11:02:19 CST 2015 yanghuan
 */
@MyBatisRepository
public interface AccRolePermissionDao {

    int deleteByPrimaryKey(@Param(value = "accRolePermissionId") String key) throws DataAccessException;

    int insert(AccRolePermission accRolePermission) throws DataAccessException;

    AccRolePermission selectByPrimaryKey(@Param(value = "accRolePermissionId") String key) throws DataAccessException;

    int updateByPrimaryKeySelective(AccRolePermission accRolePermission) throws DataAccessException;

    int updateByPrimaryKey(AccRolePermission accRolePermission) throws DataAccessException;

    Set<String> getPermissionIdSetByRoleId(@Param("accRoleId") String accRoleId) throws DataAccessException;

    void delete(AccRolePermission accRolePermission) throws DataAccessException;
}

